/*Define a table of the names of months of the year and the number of days in each month.   
Do this twice: once using an array of char for the names and an array for the number of days and once using an array of structures, with each structure holding the name of a month and the number of days in it. 
Do this twice: once using an array of char for the names and an array for the number of days and once using an array of structures, with each structure holding the name of a month and the number of days in it. 
Note: No need to write a program for this problem.
*/
#include <iostream>
using namespace std;

typedef struct Month{
    char mon[5];
    int num;
}Month;

int main(int argc, char const *argv[])
{
    char month[12][5]={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"};
    int number[12]={31,28,31,30,31,30,31,31,30,31,30,31};
    for (int i = 0; i < 11; i++)
    {
        // cout<<month[i]<<"\t"<<number[i]<<endl;
        // cout<<"{\""<<month[i]<<"\","<<number[i]<<"},";
    }
    
    Month myMonth[12]={{"Jan",31},{"Feb",28},{"Mar",31},{"Apr",30},{"May",31},{"Jun",30},{"Jul",31},{"Aug",31},{"Sept",30},{"Oct",31},{"Nov",30}};
    for (int i = 0; i < 11; i++)
    {
        cout<<myMonth[i].mon<<"\t"<<myMonth[i].num<<endl;
    }
    
    
    return 0;
}
